package com.lixl.thread;

public class ThreadDemo01 {

	public static void main(String[] args) {
		
		Runnable task = new Runnable() {
			
			@Override
			public void run() {
				System.out.println("task running");
				System.out.println(Thread.currentThread().getState());
				
				Thread.currentThread().interrupt();
				System.out.println("task is interrupt");
				System.out.println(Thread.currentThread().getState());
			}
		};
		
		Thread t = new Thread(task);
		t.start();

	}
	
}
